import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-05-30
 * Time: 0:27
 */
public class Test2 {
    public static void main(String[] args) {
         final int array[] = {1,2,3};
        array[0] = 100;
        System.out.println(Arrays.toString(array));

        array = new int[]{4,5,6}; // 编译报错：Error:(19, 9) java: 无法为最终变量array分配值
        System.out.println(array);
    }
}
